package cn.edu.sdju.fengguoyu;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Configure {
    @Value("${aliyun.accessKeyId}")
    private String accessKeyId;
    @Value("${aliyun.accessKeySecret}")
    private String accessKeySecret;
    @Value("${ahoedge.grpcServerPort}")
    private int grpcServerPort;

    @Value("${ahoedge.enableDNS}")
    private boolean enableDNS;
    public String localIPv4Address = "localhost";
    public String getAccessKeyId() {
        return accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public int getGrpcServerPort() {
        return grpcServerPort;
    }

    public void setEnableDNS(boolean enableDNS) {
        this.enableDNS = enableDNS;
    }

    public boolean isEnableDNS() {
        return enableDNS;
    }
}
